import unittest

#运行testloader
from config.setting import Configure
from libs import HTMLTestRunner

loader = unittest.TestLoader()

#1.加载测试用例方法
suit = loader.discover(Configure.test_data)

#测试报告
with open(Configure.file_path,'wb') as f:
    runner = HTMLTestRunner.HTMLTestRunner(f,verbosity=2,title="测试报告",description="2022")
    runner.run(suit)

